package com.swg.service;

import com.github.pagehelper.PageInfo;
import com.swg.common.ServerResponse;
import com.swg.pojo.Product;
import com.swg.vo.ProductDetailVo;

/**
 * @Author 【swg】.
 * @Date 2018/1/4 11:12
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface ProductService {
    ServerResponse saveOrUpdateProduct(Product product);
    ServerResponse<String> setSaleStatus(Integer productId,Integer status);
    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);
    ServerResponse<PageInfo> searchProduct(String productName,Integer productId,int pageNum,int pageSize);
    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword,Integer categoryId,String orderBy,int pageNum,int pageSize);
}
